package com.alliky.home.mvp.contract;

import com.alliky.core.entity.vo.BannerEntityInfo;
import com.alliky.core.entity.vo.CategoryVO;
import com.alliky.core.entity.vo.GoodsVO;
import com.alliky.core.base.IModel;
import com.alliky.core.base.IView;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;

/**
 * @Description TODO
 * @Author wxianing
 * @Date 2020-12-18
 * <p>
 * dagger2
 */
public interface HomeContract {

    interface View extends IView {
        void showBannerResult(List<BannerEntityInfo> list);

        void showCategory(List<CategoryVO> list);

        void showHotGoods(List<GoodsVO> list,boolean isRefresh);

        void setPageNum(int pageNum);
    }

    interface Model extends IModel {
        Observable getBanner(HashMap hashMap);

        Observable getCategory(HashMap hashMap);

        Observable getHotGoods(HashMap hashMap);
    }

    interface Presenter {
        void getBanner(HashMap hashMap);

        void getCategory(HashMap hashMap);

        void getHotGoods(HashMap hashMap,boolean isRefresh);
    }
}
